# 安装requests
# pip install requests
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
import requests

query = input("请输入搜素的单词：")
url = "https://fanyi.baidu.com/sug"

data = {
    "kw": query
}

resp = requests.post(url, data=data)
resp.close()

print(resp.json())
